#include <SDL.h>
#include "slak/glui/App.h"
#include "GameScreen.h"

using namespace slak::pacman;
using namespace slak::glui;

bool GameScreen::handle(SDL_Event& ev)
{
	switch(ev.type) {
	case SDL_KEYDOWN:
		switch(ev.key.keysym.sym) {
			case SDLK_ESCAPE:
				App::push("quit");
				return true;
			case SDLK_RIGHT:
				return true;
			case SDLK_LEFT:
				return true;
			case SDLK_UP:
				return true;
			case SDLK_DOWN:
				return true;
			}
	}
	return Screen::handle(ev);
}

